/**
 * Created by liyl on 24/09/2020.
 */
import { VuexModule, Module, Action, getModule } from 'vuex-module-decorators'
import { commonAction } from '@/utils/common'
import store from '@/store'

@Module({ dynamic: true, name: 'channelConfig', store, namespaced: false })
class ChannelConfig extends VuexModule implements ChannelConfig {
  @Action
  public async channelCommonAction (parame: object) {
    return commonAction(parame).then(resp => {
      if (resp && resp.success) {
        return resp
      }
    })
  }
}

export const channelConfigMoudle = getModule(ChannelConfig)
